using Godot;
using System;

public partial class NTopBar : Control
{
	TextureProgressBar mBar;
	Label mLevelLabel;
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
		mBar = GetNode<TextureProgressBar>("%TextureProgressBar");
		mLevelLabel = GetNode<Label>("%Label");
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}

	public void setPercent(float percent)
	{
		mBar.Value = percent * 100;
	}
	public void setLevel(int level)
	{
		mLevelLabel.Text = level.ToString();
	}
}
